package com.wicket.okrbff.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.MemberService;
import com.wicket.okrbff.biz.service.dto.common.BffStaffBeginMemberDto;
import com.wicket.okrbff.biz.service.dto.req.AddGetUserIrInfoFromRedisReqDto;
import com.wicket.okrbff.biz.service.dto.req.ClearTokenFromRedisReqDto;
import com.wicket.okrbff.biz.service.dto.req.ClearUserInfoFromRedisReqDto;
import com.wicket.okrbff.biz.service.dto.req.GetUserBasicInfoFromRedisReqDto;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.AddGetUserIrInfoFromRedisRespDto;
import com.wicket.okrbff.biz.service.dto.res.ClearTokenFromRedisRespDto;
import com.wicket.okrbff.biz.service.dto.res.ClearUserInfoFromRedisRespDto;
import com.wicket.okrbff.biz.service.dto.res.GetUserBasicInfoFromRedisRespDto;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.biz.service.nb.NbMember;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrbff.common.util.RedisUtil;
import com.wicket.okrframework.integration.*;
import com.wicket.okrframework.integration.dto.BatchClearUserInfoFromRedisReqDto;
import com.wicket.okrframework.integration.dto.BatchClearUserInfoFromRedisRespDto;
import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.stream.Collectors;
import com.wicket.okrbff.common.exception.Assert;
import java.util.ArrayList;
import cn.hutool.core.collection.CollectionUtil;
import java.util.List;
import com.wicket.okrbff.biz.service.dto.common.BffBizRoleRelDto;
import com.wicket.okrcomponent.integration.FwCompMessageClient;
import com.wicket.okrcomponent.integration.dto.ImplementIniReportTaskMsgLocationByLoginComRespDto;
import com.wicket.okrcomponent.integration.dto.ImplementIniReportTaskMsgLocationByLoginComReqDto;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class MemberServiceImpl implements MemberService {

    @Resource
    FwBaseMemberClient memberClient;
    @Resource
    FwBaseBusinessObjectClient businessObjectClient;
    @Resource
    FwBaseOrgDictionaryClient orgDictionaryClient;
    @Resource
    FwBaseInductionRecordClient inductionRecordClient;
    @Resource
    FwBaseDivineDataClient divineDataClient;
    @Resource
    NbMember nbMember;
    @Resource
    FwBaseMemberClient fwBaseMemberClient;
    @Resource
    FwBaseBusinessObjectClient fwBaseBusinessObjectClient;
    @Resource
    FwBaseOrgDictionaryClient fwBaseOrgDictionaryClient;
    @Resource
    FwBaseInductionRecordClient fwBaseInductionRecordClient;
    @Resource
    FwBaseDivineDataClient fwBaseDivineDataClient;
    @Resource
    private RedisUtil redisUtil;
@Resource
  FwBaseOrgClient fwBaseOrgClient;
@Resource
  FwCompMessageClient fwCompMessageClient;

    /**
   * B1-2新增员工身份人员（管理）[977]
   * gen by moon at 1/24/2024, 4:09:39 AM
   */
    @Trace(operationName = "B1-2新增员工身份人员（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddStaffBeginMemberRespDto addStaffBeginMember(BffAddStaffBeginMemberReqDto reqDto){
      
       
       AddStaffBeginMemberRespDto addStaffBeginMemberRespDto_1 =null;
//步骤0: D1-2新增员工身份人员 - addStaffBeginMember
     AddStaffBeginMemberRespDto addStaffBeginMemberRespDto = null;
    AddStaffBeginMemberReqDto addStaffBeginMemberReqDto=new AddStaffBeginMemberReqDto();
  addStaffBeginMemberReqDto.setIsPasswordExit("FALSE");//sourceId:66717_1
addStaffBeginMemberReqDto.setIsUserInfoDone("FALSE");//sourceId:66719_1
addStaffBeginMemberReqDto.setSenceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSceneId());//CURRENT_SCENEID//sourceId:66721_1
if(reqDto!=null){
      addStaffBeginMemberReqDto.setPassword(reqDto.getPassword());//SimpleFieldAssign//sourceId:66713_1
addStaffBeginMemberReqDto.setUserName(reqDto.getUserName());//SimpleFieldAssign//sourceId:66714_1
addStaffBeginMemberReqDto.setPhone(reqDto.getPhone());//SimpleFieldAssign//sourceId:66715_1
addStaffBeginMemberReqDto.setPassByPhone(reqDto.getPassByPhone());//SimpleFieldAssign//sourceId:66716_1
addStaffBeginMemberReqDto.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:66722_1
addStaffBeginMemberReqDto.setUserFace(reqDto.getUserFace());//SimpleFieldAssign//sourceId:66723_1
addStaffBeginMemberReqDto.setRoleMemberCode(reqDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:66724_1
addStaffBeginMemberReqDto.setIsPtJob(reqDto.getIsPtJob());//SimpleFieldAssign//sourceId:66725_1
addStaffBeginMemberReqDto.setVerificationCode(reqDto.getVerificationCode());//SimpleFieldAssign//sourceId:66726_1
addStaffBeginMemberReqDto.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:66727_1
    }
  
    /*D1-2新增员工身份人员[978]   */
    Assert.isNull(addStaffBeginMemberReqDto.getPassword(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-密码不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getPhone(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-绑定手机不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getPassByPhone(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-手机激活状态不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getIsPasswordExit(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-密码是否为空不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getIsUserInfoDone(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-个人资料是否完善不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getSenceId(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-归属于场景ID不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getIdCardName(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-真实姓名不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getUserFace(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-真实头像不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getRoleMemberCode(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-身份人员编号不能为空",false);
Assert.isNull(addStaffBeginMemberReqDto.getIsPtJob(),"B1-2新增员工身份人员（管理）-D1-2新增员工身份人员-是否兼职不能为空",false);
      addStaffBeginMemberRespDto = fwBaseMemberClient.addStaffBeginMember(addStaffBeginMemberReqDto).getData()/*vcase invoke 跨dubbo调用;*/;

      
      addStaffBeginMemberRespDto_1 = addStaffBeginMemberRespDto;
    
//步骤1: D2-执行初始化身份人员固定位置消息数量(公共) - implementIniReportTaskMsgLocationByLoginCom
     ImplementIniReportTaskMsgLocationByLoginComRespDto implementIniReportTaskMsgLocationByLoginComRespDto = null;
    if(addStaffBeginMemberRespDto !=null){
          ImplementIniReportTaskMsgLocationByLoginComReqDto implementIniReportTaskMsgLocationByLoginComReqDto=new ImplementIniReportTaskMsgLocationByLoginComReqDto();
  implementIniReportTaskMsgLocationByLoginComReqDto.setSurfaceCode("ORIGINAL_ROLE_MEMBER");//sourceId:1499655_1
implementIniReportTaskMsgLocationByLoginComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1499653_1
if(addStaffBeginMemberRespDto!=null){
      implementIniReportTaskMsgLocationByLoginComReqDto.setEntityId(addStaffBeginMemberRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1499654_1
implementIniReportTaskMsgLocationByLoginComReqDto.setOriginalRoleMemberId(addStaffBeginMemberRespDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1499652_1
implementIniReportTaskMsgLocationByLoginComReqDto.setUserId(addStaffBeginMemberRespDto.getUserId());//SimpleFieldAssign//sourceId:1499651_1
    }

    /*D2-执行初始化身份人员固定位置消息数量(公共)[7893]   */
    Assert.isNull(implementIniReportTaskMsgLocationByLoginComReqDto.getSurfaceCode(),"B1-2新增员工身份人员（管理）-D2-执行初始化身份人员固定位置消息数量(公共)-归属内容类型编码不能为空",false);
Assert.isNull(implementIniReportTaskMsgLocationByLoginComReqDto.getEntityId(),"B1-2新增员工身份人员（管理）-D2-执行初始化身份人员固定位置消息数量(公共)-归属内容ID不能为空",false);
Assert.isNull(implementIniReportTaskMsgLocationByLoginComReqDto.getOriginalRoleMemberId(),"B1-2新增员工身份人员（管理）-D2-执行初始化身份人员固定位置消息数量(公共)-身份人员ID不能为空",false);
Assert.isNull(implementIniReportTaskMsgLocationByLoginComReqDto.getUserId(),"B1-2新增员工身份人员（管理）-D2-执行初始化身份人员固定位置消息数量(公共)-账号不能为空",false);
Assert.isNull(implementIniReportTaskMsgLocationByLoginComReqDto.getSpaceId(),"B1-2新增员工身份人员（管理）-D2-执行初始化身份人员固定位置消息数量(公共)-创建于空间ID不能为空",false);
      implementIniReportTaskMsgLocationByLoginComRespDto = fwCompMessageClient.implementIniReportTaskMsgLocationByLoginCom(implementIniReportTaskMsgLocationByLoginComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }

BffAddStaffBeginMemberRespDto retData = new BffAddStaffBeginMemberRespDto();
  if(addStaffBeginMemberRespDto_1!=null){
      retData.setUserId(addStaffBeginMemberRespDto_1.getUserId());//SimpleFieldAssign//sourceId:66743_1
retData.setOriginalRoleMemberId(addStaffBeginMemberRespDto_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:66744_1
retData.setMemberId(addStaffBeginMemberRespDto_1.getMemberId());//SimpleFieldAssign//sourceId:66745_1
retData.setRoleId(addStaffBeginMemberRespDto_1.getRoleId());//SimpleFieldAssign//sourceId:66746_1
retData.setPersonalDataId(addStaffBeginMemberRespDto_1.getPersonalDataId());//SimpleFieldAssign//sourceId:66747_1
retData.setOriginalStafInfoId(addStaffBeginMemberRespDto_1.getOriginalStafInfoId());//SimpleFieldAssign//sourceId:66748_1
retData.setInductionRecordId(addStaffBeginMemberRespDto_1.getInductionRecordId());//SimpleFieldAssign//sourceId:66749_1
    }
  

  
  
return retData;
  }


    /**
   * B1-2查询角色人员列表（管理）[739]
   * gen by moon at 8/10/2022, 3:30:15 AM
   */
    @Trace(operationName = "B1-2查询角色人员列表（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryRoleRelListRespDto queryRoleRelList(BffQueryRoleRelListReqDto reqDto){
      
       
       QueryRoleRelListRespDto queryRoleRelListRespDto_1 = null;
//步骤0: D1-2查询角色人员列表 - queryRoleRelList
     QueryRoleRelListRespDto queryRoleRelListRespDto = null;
    QueryRoleRelListReqDto queryRoleRelListReqDto=new QueryRoleRelListReqDto();
  queryRoleRelListReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:29753_1
if(reqDto!=null){
      queryRoleRelListReqDto.setRoleCode(reqDto.getRoleCode());//sourceId:23457_1
queryRoleRelListReqDto.setIsArchive(reqDto.getIsArchive());//sourceId:51086_1
    }
  
    /*D1-2查询角色人员列表[1134]   */
    Assert.isNull(queryRoleRelListReqDto.getRoleCode(),"B1-2查询角色人员列表（管理）-D1-2查询角色人员列表-角色标识不能为空",false);
Assert.isNull(queryRoleRelListReqDto.getIsArchive(),"B1-2查询角色人员列表（管理）-D1-2查询角色人员列表-是否存档不能为空",false);
Assert.isNull(queryRoleRelListReqDto.getSpaceId(),"B1-2查询角色人员列表（管理）-D1-2查询角色人员列表-创建于空间ID不能为空",false);
      queryRoleRelListRespDto = fwBaseMemberClient.queryRoleRelList(queryRoleRelListReqDto).getData();
      
      queryRoleRelListRespDto_1 = queryRoleRelListRespDto;
    
BffQueryRoleRelListRespDto retData = new BffQueryRoleRelListRespDto();
  if(queryRoleRelListRespDto_1!=null){
      retData.setRoleRelList(queryRoleRelListRespDto_1.getRoleRelList().stream().map(item -> BeanUtil.toBean(item, BffRoleRelDto.class)).collect(Collectors.toList()));//sourceId:23470_1
    }
  

  retData.setPageNum(queryRoleRelListRespDto.getPageNum());
        retData.setPageSize(queryRoleRelListRespDto.getPageSize());
        retData.setTotal(queryRoleRelListRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryRoleRelListRespDto.getTotalNum()) / Double.valueOf(queryRoleRelListRespDto.getPageSize()))) <= retData.getPageNum());
        
  
return retData;
  }

    /**
   * B1-2查询员工身份人员列表（管理）	[1175]
   * gen by moon at 2/20/2023, 2:56:55 PM
   */
    @Trace(operationName = "B1-2查询员工身份人员列表（管理）	")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryStaffBeginMemberListRespDto queryStaffBeginMemberList(BffQueryStaffBeginMemberListReqDto reqDto){
      
       
       QueryStaffBeginMemberListRespDto queryStaffBeginMemberListRespDto_1 = null;
//步骤0: D1-2查询员工身份人员列表 - queryStaffBeginMemberList
     QueryStaffBeginMemberListRespDto queryStaffBeginMemberListRespDto = null;
    QueryStaffBeginMemberListReqDto queryStaffBeginMemberListReqDto=new QueryStaffBeginMemberListReqDto();
  queryStaffBeginMemberListReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:29198_1
if(reqDto!=null){
      queryStaffBeginMemberListReqDto.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:29188_1
queryStaffBeginMemberListReqDto.setIsInvalid(reqDto.getIsInvalid());//SimpleFieldAssign//sourceId:29187_1
queryStaffBeginMemberListReqDto.setSource(reqDto.getSource());//SimpleFieldAssign//sourceId:29189_1
    }
  
    /*D1-2查询员工身份人员列表[1253]   */
    Assert.isNull(queryStaffBeginMemberListReqDto.getSpaceId(),"B1-2查询员工身份人员列表（管理）	-D1-2查询员工身份人员列表-创建于空间ID不能为空",false);
      queryStaffBeginMemberListRespDto = fwBaseMemberClient.queryStaffBeginMemberList(queryStaffBeginMemberListReqDto).getData();
      
      queryStaffBeginMemberListRespDto_1 = queryStaffBeginMemberListRespDto;
    
BffQueryStaffBeginMemberListRespDto retData = new BffQueryStaffBeginMemberListRespDto();
  if(queryStaffBeginMemberListRespDto_1!=null){
      // TODO: 2022/9/8 晓东，新的出参字段模式需要对接，我下面是偷懒的示例代码，要特别注意，如果字段名都相同，但是打了出参字段模式的时候，需要按照字段名不同的代码编写方式编写
      retData.setBeginMemberList(queryStaffBeginMemberListRespDto_1.getBeginMemberList().stream().map(item -> {
          BffBeginMemberDto elm = BeanUtil.toBean(item, BffBeginMemberDto.class);
          elm.setUserFace(CommonFunctionHelper.getSpecImage(elm.getUserFace(),"_32"));
          return elm;
      }).collect(Collectors.toList()));//sourceId:63329_1
    }
  

  
  
return retData;
  }

    /**
   * B查询个人面板详情（公共）[407]
   * gen by moon at 8/22/2022, 10:22:40 PM
   */
    @Trace(operationName = "B查询个人面板详情（公共）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryStaffBeginMemberInfoDetailRespDto queryStaffBeginMemberInfoDetail(BffQueryStaffBeginMemberInfoDetailReqDto reqDto){
      
       
       GetUserBasicInfoFromRedisRespDto getUserBasicInfoFromRedisRes_1 = null;
AddGetUserIrInfoFromRedisRespDto getUserIrInfoFromRedisRes_1 = null;
QueryUserLoginInfoRespDto queryUserLoginInfoRespDto_1 = null;
//virtualUsage D-Redis获取用户基本信息  1615
      //ModelCode: getUserBasicInfoFromRedis
        GetUserBasicInfoFromRedisRespDto getUserBasicInfoFromRedisRes = null;
    GetUserBasicInfoFromRedisReqDto getUserBasicInfoFromRedisReq=new GetUserBasicInfoFromRedisReqDto();
  getUserBasicInfoFromRedisReq.setOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:49989_1_1615
  
    /*D-Redis获取用户基本信息[1680]   */
    Assert.isNull(getUserBasicInfoFromRedisReq.getOriginalRoleMemberId(),"B查询个人面板详情（公共）-D-Redis获取用户基本信息-身份人员ID不能为空",false);
      getUserBasicInfoFromRedisRes = nbMember.getUserBasicInfoFromRedis(getUserBasicInfoFromRedisReq);
      
      getUserBasicInfoFromRedisRes_1 = getUserBasicInfoFromRedisRes;
//virtualUsage D-Redis获取用户就职信息  1616
      //ModelCode: getUserIrInfoFromRedis
        AddGetUserIrInfoFromRedisRespDto getUserIrInfoFromRedisRes = null;
    AddGetUserIrInfoFromRedisReqDto getUserIrInfoFromRedisReq=new AddGetUserIrInfoFromRedisReqDto();
  getUserIrInfoFromRedisReq.setOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:50007_1_1616
  
    /*D-Redis获取用户就职信息[1681]   */
    Assert.isNull(getUserIrInfoFromRedisReq.getOriginalRoleMemberId(),"B查询个人面板详情（公共）-D-Redis获取用户就职信息-身份人员ID不能为空",false);
      getUserIrInfoFromRedisRes = nbMember.addGetUserIrInfoFromRedis(getUserIrInfoFromRedisReq);
      
      getUserIrInfoFromRedisRes_1 = getUserIrInfoFromRedisRes;
if((getUserBasicInfoFromRedisRes == null &&getUserIrInfoFromRedisRes!= null&&  getUserIrInfoFromRedisRes.getOrgInductionRecordList() !=null && getUserIrInfoFromRedisRes.getOrgInductionRecordList().size()==0)) {
        //if((D-Redis获取用户基本信息.出参 值等于空  and D-Redis获取用户就职信息.就职记录列表数据集条数 等于 0))  1617
        
QueryUserLoginInfoRespDto queryUserLoginInfoRespDto = null;
    QueryUserLoginInfoReqDto queryUserLoginInfoReqDto=new QueryUserLoginInfoReqDto();
  queryUserLoginInfoReqDto.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:50009_1_1622
queryUserLoginInfoReqDto.setRoleCode(CommonFunctionHelper.getBaseInfoFromLocal().getSpecRoleCode());//CURRENT_ROLECODE//sourceId:50010_1_1622
queryUserLoginInfoReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:50017_1_1622
queryUserLoginInfoReqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:50018_1_1622
  
    /*D1-查询用户登录信息[1194]   */
    Assert.isNull(queryUserLoginInfoReqDto.getUserId(),"B查询个人面板详情（公共）-D1-查询用户登录信息-账号不能为空",false);
Assert.isNull(queryUserLoginInfoReqDto.getRoleCode(),"B查询个人面板详情（公共）-D1-查询用户登录信息-身份角色编码不能为空",false);
Assert.isNull(queryUserLoginInfoReqDto.getSpaceId(),"B查询个人面板详情（公共）-D1-查询用户登录信息-创建于空间ID不能为空",false);
Assert.isNull(queryUserLoginInfoReqDto.getAppId(),"B查询个人面板详情（公共）-D1-查询用户登录信息-创建于联盟应用ID不能为空",false);
      queryUserLoginInfoRespDto = fwBaseBusinessObjectClient.queryUserLoginInfo(queryUserLoginInfoReqDto).getData();
      
      queryUserLoginInfoRespDto_1 = queryUserLoginInfoRespDto;
//processBranchName:正常结束 ,processBranchId:1625
        
      }
else{
       //else  1626
      
//processBranchName:正常结束 ,processBranchId:1627
        
    }
BffQueryStaffBeginMemberInfoDetailRespDto retData = new BffQueryStaffBeginMemberInfoDetailRespDto();
  //sourceId:50291_1
if(queryUserLoginInfoRespDto_1!=null){
      retData.setOriginalRoleMemberId(queryUserLoginInfoRespDto_1.getOriginalRoleMemberId());//sourceId:50297_1
retData.setUserId(queryUserLoginInfoRespDto_1.getUserId());//sourceId:63924_1
retData.setUserName(queryUserLoginInfoRespDto_1.getUserName());//sourceId:50281_1
retData.setNickName(queryUserLoginInfoRespDto_1.getNickName());//sourceId:50283_1
retData.setIdCardName(queryUserLoginInfoRespDto_1.getIdCardName());//sourceId:50282_1
retData.setUserFace(queryUserLoginInfoRespDto_1.getUserFace());//sourceId:50284_1
retData.setSex(queryUserLoginInfoRespDto_1.getSex());//sourceId:50285_1
retData.setBirthday(queryUserLoginInfoRespDto_1.getBirthday());//sourceId:50286_1
retData.setCity(queryUserLoginInfoRespDto_1.getCity());//sourceId:50287_1
retData.setPhone(queryUserLoginInfoRespDto_1.getPhone());//sourceId:50288_1
retData.setPassByPhone(queryUserLoginInfoRespDto_1.getPassByPhone());//sourceId:50289_1
retData.setIsUserInfoDone(queryUserLoginInfoRespDto_1.getIsUserInfoDone());//sourceId:50290_1
retData.setRoleMemberCode(queryUserLoginInfoRespDto_1.getRoleMemberCode());//sourceId:50292_1
retData.setRoleList(queryUserLoginInfoRespDto_1.getRoleList().stream().map(item -> BeanUtil.toBean(item, BffFrameworkSceneRoleDto.class)).collect(Collectors.toList()));//sourceId:63966_1
    }
if(getUserBasicInfoFromRedisRes_1!=null){
      retData.setOriginalRoleMemberId(getUserBasicInfoFromRedisRes_1.getOriginalRoleMemberId());//sourceId:50297_1
retData.setUserId(getUserBasicInfoFromRedisRes_1.getUserId());//sourceId:63924_1
retData.setUserName(getUserBasicInfoFromRedisRes_1.getUserName());//sourceId:50281_1
retData.setIdCardName(getUserBasicInfoFromRedisRes_1.getIdCardName());//sourceId:50282_1
retData.setUserFace(getUserBasicInfoFromRedisRes_1.getUserFace());//sourceId:50284_1
retData.setSex(getUserBasicInfoFromRedisRes_1.getSex());//sourceId:50285_1
retData.setBirthday(getUserBasicInfoFromRedisRes_1.getBirthday());//sourceId:50286_1
retData.setCity(getUserBasicInfoFromRedisRes_1.getCity());//sourceId:50287_1
retData.setPhone(getUserBasicInfoFromRedisRes_1.getPhone());//sourceId:50288_1
retData.setPassByPhone(getUserBasicInfoFromRedisRes_1.getPassByPhone());//sourceId:50289_1
retData.setIsUserInfoDone(getUserBasicInfoFromRedisRes_1.getIsUserInfoDone());//sourceId:50290_1
retData.setRoleMemberCode(getUserBasicInfoFromRedisRes_1.getRoleMemberCode());//sourceId:50292_1
    }
  

  
  
return retData;
  }

    /**
   * B1-2查询组织下成员列表（边界）[1786]
   * gen by moon at 8/31/2022, 7:28:17 PM
   */
    @Trace(operationName = "B1-2查询组织下成员列表（边界）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryOrgMemberListRespDto queryOrgMemberList(BffQueryOrgMemberListReqDto reqDto){
      
       
       QueryOrgMemberListBorderRespDto queryOrgMemberListBorderRespDto_1 =null;
//步骤0: D1-2查询组织下成员列表（边界） - queryOrgMemberListBorder
     QueryOrgMemberListBorderRespDto queryOrgMemberListBorderRespDto = null;
    QueryOrgMemberListBorderReqDto queryOrgMemberListBorderReqDto=new QueryOrgMemberListBorderReqDto();
  queryOrgMemberListBorderReqDto.setOrganizationId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOrganizationId());//CURRENT_ORGID//sourceId:54372_1
if(reqDto!=null){
      queryOrgMemberListBorderReqDto.setRoleCode(reqDto.getRoleCode());//sourceId:54373_1
    }
  
    /*D1-2查询组织下成员列表（边界）[1784]   */
    Assert.isNull(queryOrgMemberListBorderReqDto.getRoleCode(),"B1-2查询组织下成员列表（边界）-D1-2查询组织下成员列表（边界）-角色标识不能为空",false);
Assert.isNull(queryOrgMemberListBorderReqDto.getOrganizationId(),"B1-2查询组织下成员列表（边界）-D1-2查询组织下成员列表（边界）-组织ID不能为空",false);
      queryOrgMemberListBorderRespDto = fwBaseMemberClient.queryOrgMemberListBorder(queryOrgMemberListBorderReqDto).getData();
      
      queryOrgMemberListBorderRespDto_1 = queryOrgMemberListBorderRespDto;
    
BffQueryOrgMemberListRespDto retData = new BffQueryOrgMemberListRespDto();
  if(queryOrgMemberListBorderRespDto_1!=null){
      retData.setBeginMemberList(queryOrgMemberListBorderRespDto_1.getBeginMemberList().stream().map(item -> BeanUtil.toBean(item, BffBeginMemberDto.class)).collect(Collectors.toList()));//sourceId:54382_1
    }
  

  
  
return retData;
  }

    /**
   * B1-2查询角色人员列表（边界）[1353]
   * gen by moon at 11/1/2022, 8:19:02 AM
   */
    @Trace(operationName = "B1-2查询角色人员列表（边界）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryRoleRelListBorderRespDto queryRoleRelListBorder(BffQueryRoleRelListBorderReqDto reqDto){
      
       
       QueryRoleRelListBorderRespDto queryRoleRelListBorderRespDto_1 =null;
BatchQueryOriginalRoleMemberInductionRecordComRespDto batchQueryOriginalRoleMemberInductionRecordComRespDto_1 =null;
//步骤0: D1-2查询角色人员列表（边界） - queryRoleRelListBorder
     QueryRoleRelListBorderRespDto queryRoleRelListBorderRespDto = null;
    QueryRoleRelListBorderReqDto queryRoleRelListBorderReqDto=new QueryRoleRelListBorderReqDto();
  queryRoleRelListBorderReqDto.setRelationshipValid("FALSE");//sourceId:51274_1
queryRoleRelListBorderReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:51275_1
queryRoleRelListBorderReqDto.setIsArchive("FALSE");//sourceId:51320_1
queryRoleRelListBorderReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:51277_1
if(reqDto!=null){
      queryRoleRelListBorderReqDto.setFirstLetter(reqDto.getFirstLetter());//SimpleFieldAssign//sourceId:99214_1
queryRoleRelListBorderReqDto.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:51272_1
queryRoleRelListBorderReqDto.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:51319_1
    }
  
    /*D1-2查询角色人员列表（边界）[1708]   */
    Assert.isNull(queryRoleRelListBorderReqDto.getRoleCode(),"B1-2查询角色人员列表（边界）-D1-2查询角色人员列表（边界）-角色标识不能为空",false);
Assert.isNull(queryRoleRelListBorderReqDto.getRelationshipValid(),"B1-2查询角色人员列表（边界）-D1-2查询角色人员列表（边界）-是否失效不能为空",false);
Assert.isNull(queryRoleRelListBorderReqDto.getSubjectLifeCycle(),"B1-2查询角色人员列表（边界）-D1-2查询角色人员列表（边界）-主体生命周期不能为空",false);
Assert.isNull(queryRoleRelListBorderReqDto.getIsArchive(),"B1-2查询角色人员列表（边界）-D1-2查询角色人员列表（边界）-是否存档不能为空",false);
Assert.isNull(queryRoleRelListBorderReqDto.getSpaceId(),"B1-2查询角色人员列表（边界）-D1-2查询角色人员列表（边界）-创建于空间ID不能为空",false);
      queryRoleRelListBorderRespDto = fwBaseMemberClient.queryRoleRelListBorder(queryRoleRelListBorderReqDto).getData();
      
      
      queryRoleRelListBorderRespDto_1 = queryRoleRelListBorderRespDto;
    
//步骤1: D1-3批量查询身份人员就职记录(公共) - batchQueryOriginalRoleMemberInductionRecordCom
     BatchQueryOriginalRoleMemberInductionRecordComRespDto batchQueryOriginalRoleMemberInductionRecordComRespDto = null;
    if(queryRoleRelListBorderRespDto !=null){
          BatchQueryOriginalRoleMemberInductionRecordComReqDto batchQueryOriginalRoleMemberInductionRecordComReqDto=new BatchQueryOriginalRoleMemberInductionRecordComReqDto();
  batchQueryOriginalRoleMemberInductionRecordComReqDto.setIsMainInduction("TRUE");//sourceId:413907_1
batchQueryOriginalRoleMemberInductionRecordComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:413908_1
if(queryRoleRelListBorderRespDto!=null){
      batchQueryOriginalRoleMemberInductionRecordComReqDto.setOrgInductionRecordList(queryRoleRelListBorderRespDto.getRoleRelList().stream().map(item->item.getOriginalRoleMemberId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:413906_1
    }
  
    /*D1-3批量查询身份人员就职记录(公共)[5080]   */
    Assert.isNull(batchQueryOriginalRoleMemberInductionRecordComReqDto.getIsMainInduction(),"B1-2查询角色人员列表（边界）-D1-3批量查询身份人员就职记录(公共)-是否主岗不能为空",false);
Assert.isNull(batchQueryOriginalRoleMemberInductionRecordComReqDto.getSubjectLifeCycle(),"B1-2查询角色人员列表（边界）-D1-3批量查询身份人员就职记录(公共)-主体生命周期不能为空",false);
      batchQueryOriginalRoleMemberInductionRecordComRespDto = fwBaseInductionRecordClient.batchQueryOriginalRoleMemberInductionRecordCom(batchQueryOriginalRoleMemberInductionRecordComReqDto).getData();
      
      
      batchQueryOriginalRoleMemberInductionRecordComRespDto_1 = batchQueryOriginalRoleMemberInductionRecordComRespDto;
           }
    
BffQueryRoleRelListBorderRespDto retData = new BffQueryRoleRelListBorderRespDto();
  //数据集融合  MoreListToOneSource
        if(queryRoleRelListBorderRespDto_1!= null && !CollectionUtil.isEmpty(queryRoleRelListBorderRespDto_1.getRoleRelList()) ){
          for (RoleRelDto roleRelDto : queryRoleRelListBorderRespDto_1.getRoleRelList()) {
              BffRoleRelDto retElm = new BffRoleRelDto();
             if(queryRoleRelListBorderRespDto_1!=null){
      retElm.setRoleMemberId(roleRelDto.getRoleMemberId());//SimpleFieldAssign//sourceId:95177_2
retElm.setOriginalRoleMemberId(roleRelDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:96478_2
retElm.setRoleMemberCode(roleRelDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:26810_2
retElm.setUserId(roleRelDto.getUserId());//SimpleFieldAssign//sourceId:96701_2
retElm.setRoleCode(roleRelDto.getRoleCode());//SimpleFieldAssign//sourceId:26805_2
retElm.setUserFace(roleRelDto.getUserFace());//SimpleFieldAssign//sourceId:26809_2
retElm.setIdCardName(roleRelDto.getIdCardName());//SimpleFieldAssign//sourceId:26807_2
retElm.setNickName(roleRelDto.getNickName());//SimpleFieldAssign//sourceId:26808_2
retElm.setFirstLetter(roleRelDto.getFirstLetter());//SimpleFieldAssign//sourceId:96702_2
retElm.setPositionIdName(roleRelDto.getPositionIdName());//SimpleFieldAssign//sourceId:26811_2
    }
              retData.getRoleRelList().add(retElm);
               if(batchQueryOriginalRoleMemberInductionRecordComRespDto_1!= null){
          for (OrgInductionRecordDto orgInductionRecordDto : batchQueryOriginalRoleMemberInductionRecordComRespDto_1.getOrgInductionRecordList()) {
                if (orgInductionRecordDto.getOriginalRoleMemberId().equals(roleRelDto.getOriginalRoleMemberId())) {
                 if(batchQueryOriginalRoleMemberInductionRecordComRespDto_1!=null){
      retElm.setInductionRecordId(orgInductionRecordDto.getInductionRecordId());//SimpleFieldAssign//sourceId:114513_2
    }
                }
            }
          }
        
          }
        }//sourceId:51322_1
  

  
  
return retData;
  }

    /**
   * B1-2取消设员工无效（管理）[1338]
   * gen by moon at 8/10/2022, 3:34:41 AM
   */
    @Trace(operationName = "B1-2取消设员工无效（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffCancelIsinvalidSetStaffMemberRespDto cancelIsinvalidSetStaffMember(BffCancelIsinvalidSetStaffMemberReqDto reqDto){
      
       
       //步骤0: D1-2取消设员工无效 - cancelIsinvalidSetStaffMember
     CancelIsinvalidSetStaffMemberRespDto cancelIsinvalidSetStaffMemberRespDto = null;
    CancelIsinvalidSetStaffMemberReqDto cancelIsinvalidSetStaffMemberReqDto=new CancelIsinvalidSetStaffMemberReqDto();
  if(reqDto!=null){
      cancelIsinvalidSetStaffMemberReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:50355_1
    }
  
    /*D1-2取消设员工无效[1690]   */
    Assert.isNull(cancelIsinvalidSetStaffMemberReqDto.getOriginalRoleMemberId(),"B1-2取消设员工无效（管理）-D1-2取消设员工无效-身份人员ID不能为空",false);
      cancelIsinvalidSetStaffMemberRespDto = fwBaseMemberClient.cancelIsinvalidSetStaffMember(cancelIsinvalidSetStaffMemberReqDto).getData();
      
      
    
BffCancelIsinvalidSetStaffMemberRespDto retData = new BffCancelIsinvalidSetStaffMemberRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-2查询角色人员详情（管理）[1209]
   * gen by moon at 9/12/2022, 6:27:06 PM
   */
    @Trace(operationName = "B1-2查询角色人员详情（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryRoleRelDetailRespDto queryRoleRelDetail(BffQueryRoleRelDetailReqDto reqDto){
      
       
       QueryRoleRelDetailRespDto queryRoleRelDetailRespDto_1 =null;
QueryOrgClassBorderDetailComBorderRespDto queryOrgClassBorderDetailComBorderRespDto_1 =null;
QueryOrgClassBorderDetailComBorderRespDto queryOrgClassBorderDetailComBorderRespDto_3 =null;
QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto_1 =null;
//步骤0: D1-2查询角色人员详情 - queryRoleRelDetail
     QueryRoleRelDetailRespDto queryRoleRelDetailRespDto = null;
    QueryRoleRelDetailReqDto queryRoleRelDetailReqDto=new QueryRoleRelDetailReqDto();
  if(reqDto!=null){
      queryRoleRelDetailReqDto.setRoleMemberId(reqDto.getRoleMemberId());//sourceId:29482_1
queryRoleRelDetailReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:63304_1
queryRoleRelDetailReqDto.setUserId(reqDto.getUserId());//sourceId:63305_1
queryRoleRelDetailReqDto.setRoleId(reqDto.getRoleId());//sourceId:63306_1
    }
  
    /*D1-2查询角色人员详情[1171]   */
    Assert.isNull(queryRoleRelDetailReqDto.getRoleMemberId(),"B1-2查询角色人员详情（管理）-D1-2查询角色人员详情-角色人员ID不能为空",false);
Assert.isNull(queryRoleRelDetailReqDto.getOriginalRoleMemberId(),"B1-2查询角色人员详情（管理）-D1-2查询角色人员详情-身份人员ID不能为空",false);
Assert.isNull(queryRoleRelDetailReqDto.getUserId(),"B1-2查询角色人员详情（管理）-D1-2查询角色人员详情-个人账号不能为空",false);
Assert.isNull(queryRoleRelDetailReqDto.getRoleId(),"B1-2查询角色人员详情（管理）-D1-2查询角色人员详情-角色ID不能为空",false);
      queryRoleRelDetailRespDto = fwBaseMemberClient.queryRoleRelDetail(queryRoleRelDetailReqDto).getData();
      
      
      queryRoleRelDetailRespDto_1 = queryRoleRelDetailRespDto;
    
//步骤1: D1-3查询组织架构字典边界详情(公共)(边界) - queryOrgClassBorderDetailComBorder
     QueryOrgClassBorderDetailComBorderRespDto queryOrgClassBorderDetailComBorderRespDto = null;
    if(queryRoleRelDetailRespDto !=null&&queryRoleRelDetailRespDto!= null&&  queryRoleRelDetailRespDto.getInductionTypeDictionaryId() !=null){
          QueryOrgClassBorderDetailComBorderReqDto queryOrgClassBorderDetailComBorderReqDto=new QueryOrgClassBorderDetailComBorderReqDto();
  queryOrgClassBorderDetailComBorderReqDto.setPurposeCode("INDUCTION_TYPE");//sourceId:43718_1
if(queryRoleRelDetailRespDto!=null){
      queryOrgClassBorderDetailComBorderReqDto.setTypeDictionaryId(queryRoleRelDetailRespDto.getInductionTypeDictionaryId());//sourceId:43734_1
    }
  
    /*D1-3查组织架构类型字典边界（就职类型数据字典）[953]   */
    Assert.isNull(queryOrgClassBorderDetailComBorderReqDto.getPurposeCode(),"B1-2查询角色人员详情（管理）-D1-3查组织架构类型字典边界（就职类型数据字典）-类型用途编码不能为空",false);
Assert.isNull(queryOrgClassBorderDetailComBorderReqDto.getTypeDictionaryId(),"B1-2查询角色人员详情（管理）-D1-3查组织架构类型字典边界（就职类型数据字典）-类型字典ID不能为空",false);
      queryOrgClassBorderDetailComBorderRespDto = fwBaseOrgDictionaryClient.queryOrgClassBorderDetailComBorder(queryOrgClassBorderDetailComBorderReqDto).getData();
      
      
      queryOrgClassBorderDetailComBorderRespDto_1 = queryOrgClassBorderDetailComBorderRespDto;
           }
    
//步骤2: D1-3查询组织架构字典边界详情(公共)(边界) - queryOrgClassBorderDetailComBorder
     QueryOrgClassBorderDetailComBorderRespDto queryOrgClassBorderDetailComBorderRespDto_2 = null;
    if(queryRoleRelDetailRespDto !=null&&queryRoleRelDetailRespDto!= null&&  queryRoleRelDetailRespDto.getInductionStateDictionaryId() !=null){
          QueryOrgClassBorderDetailComBorderReqDto queryOrgClassBorderDetailComBorderReqDto_1=new QueryOrgClassBorderDetailComBorderReqDto();
  queryOrgClassBorderDetailComBorderReqDto_1.setPurposeCode("INDUCTION_STATE");//sourceId:43731_1
if(queryRoleRelDetailRespDto!=null){
      queryOrgClassBorderDetailComBorderReqDto_1.setTypeDictionaryId(queryRoleRelDetailRespDto.getInductionStateDictionaryId());//sourceId:43732_1
    }
  
    /*D1-3查组织架构类型字典边界（就职状态数据字典）[953]   */
    Assert.isNull(queryOrgClassBorderDetailComBorderReqDto_1.getPurposeCode(),"B1-2查询角色人员详情（管理）-D1-3查组织架构类型字典边界（就职状态数据字典）-类型用途编码不能为空",false);
Assert.isNull(queryOrgClassBorderDetailComBorderReqDto_1.getTypeDictionaryId(),"B1-2查询角色人员详情（管理）-D1-3查组织架构类型字典边界（就职状态数据字典）-类型字典ID不能为空",false);
      queryOrgClassBorderDetailComBorderRespDto_2 = fwBaseOrgDictionaryClient.queryOrgClassBorderDetailComBorder(queryOrgClassBorderDetailComBorderReqDto_1).getData();
      
      
      queryOrgClassBorderDetailComBorderRespDto_3 = queryOrgClassBorderDetailComBorderRespDto_2;
           }
    
//步骤3: D1-3查询个人就职记录信息详情（公共） - queryInductionRecordInfoDetailCom
     QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
    if(queryRoleRelDetailRespDto !=null){
          QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto=new QueryInductionRecordInfoDetailComReqDto();
  if(queryRoleRelDetailRespDto!=null){
      queryInductionRecordInfoDetailComReqDto.setInductionRecordId(queryRoleRelDetailRespDto.getOperationInductionId());//sourceId:28177_1
    }
  
    /*D1-3查询个人就职记录信息详情（公共）[715]   */
    Assert.isNull(queryInductionRecordInfoDetailComReqDto.getInductionRecordId(),"B1-2查询角色人员详情（管理）-D1-3查询个人就职记录信息详情（公共）-就职记录ID不能为空",false);
      queryInductionRecordInfoDetailComRespDto = fwBaseInductionRecordClient.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData();
      
      
      queryInductionRecordInfoDetailComRespDto_1 = queryInductionRecordInfoDetailComRespDto;
           }
    
BffQueryRoleRelDetailRespDto retData = new BffQueryRoleRelDetailRespDto();
  if(queryRoleRelDetailRespDto_1!=null){
      retData.setRoleMemberId(queryRoleRelDetailRespDto_1.getRoleMemberId());//sourceId:29915_1
retData.setOriginalRoleMemberId(queryRoleRelDetailRespDto_1.getOriginalRoleMemberId());//sourceId:29916_1
retData.setUserId(queryRoleRelDetailRespDto_1.getUserId());//sourceId:31954_1
retData.setSubjectLifeCycle(queryRoleRelDetailRespDto_1.getSubjectLifeCycle());//sourceId:29541_1
retData.setRelationshipValid(queryRoleRelDetailRespDto_1.getRelationshipValid());//sourceId:29802_1
retData.setStatus(queryRoleRelDetailRespDto_1.getStatus());//sourceId:29543_1
retData.setInvalidReason(queryRoleRelDetailRespDto_1.getInvalidReason());//sourceId:29544_1
retData.setInvalidTime(queryRoleRelDetailRespDto_1.getInvalidTime());//sourceId:29545_1
retData.setIsArchive(queryRoleRelDetailRespDto_1.getIsArchive());//sourceId:29546_1
retData.setOperationInductionId(queryRoleRelDetailRespDto_1.getOperationInductionId());//sourceId:29547_1
retData.setOperateTime(queryRoleRelDetailRespDto_1.getOperateTime());//sourceId:29548_1
retData.setUserName(queryRoleRelDetailRespDto_1.getUserName());//sourceId:29549_1
retData.setEmail(queryRoleRelDetailRespDto_1.getEmail());//sourceId:29550_1
retData.setPhone(queryRoleRelDetailRespDto_1.getPhone());//sourceId:29551_1
retData.setIdCardName(queryRoleRelDetailRespDto_1.getIdCardName());//sourceId:29552_1
retData.setNickName(queryRoleRelDetailRespDto_1.getNickName());//sourceId:29553_1
retData.setUserFace(queryRoleRelDetailRespDto_1.getUserFace());//sourceId:29554_1
retData.setUserIntro(queryRoleRelDetailRespDto_1.getUserIntro());//sourceId:29555_1
retData.setSex(queryRoleRelDetailRespDto_1.getSex());//sourceId:29556_1
retData.setBirthday(queryRoleRelDetailRespDto_1.getBirthday());//sourceId:29557_1
retData.setCity(queryRoleRelDetailRespDto_1.getCity());//sourceId:29558_1
retData.setRoleMemberCode(queryRoleRelDetailRespDto_1.getRoleMemberCode());//sourceId:29559_1
retData.setPositionIdName(queryRoleRelDetailRespDto_1.getPositionIdName());//sourceId:29560_1
retData.setFirstLetter(queryRoleRelDetailRespDto_1.getFirstLetter());//sourceId:31931_1
retData.setRoleId(queryRoleRelDetailRespDto_1.getRoleId());//sourceId:31923_1
retData.setRoleCode(queryRoleRelDetailRespDto_1.getRoleCode());//sourceId:31924_1
retData.setRoleName(queryRoleRelDetailRespDto_1.getRoleName());//sourceId:29561_1
    }
if(queryInductionRecordInfoDetailComRespDto_1!=null){
      retData.setOperaterIdCardName(queryInductionRecordInfoDetailComRespDto_1.getIdCardName());//sourceId:29727_1
retData.setOperaterNickName(queryInductionRecordInfoDetailComRespDto_1.getNickName());//sourceId:29728_1
    }
if(queryOrgClassBorderDetailComBorderRespDto_1!=null){
      retData.setInductionTypeDictionaryName(queryOrgClassBorderDetailComBorderRespDto_1.getTypeDictionaryName());//sourceId:43757_1
    }
if(queryOrgClassBorderDetailComBorderRespDto_3!=null){
      retData.setInductionStateDictionaryName(queryOrgClassBorderDetailComBorderRespDto_3.getTypeDictionaryName());//sourceId:43772_1
    }
  

  
  
return retData;
  }

    /**
   * B1-新增角色人员（管理）[1145]
   * gen by moon at 8/31/2022, 12:18:23 AM
   */
    @Trace(operationName = "B1-新增角色人员（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddRoleRelRespDto addRoleRel(BffAddRoleRelReqDto reqDto){
      
       
       AddRoleRelRespDto addRoleRelRespDto_1 =null;
//步骤0: D1-2新增角色人员 - addRoleRel
     AddRoleRelRespDto addRoleRelRespDto = null;
    AddRoleRelReqDto addRoleRelReqDto=new AddRoleRelReqDto();
  if(reqDto!=null){
      addRoleRelReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:31939_1
addRoleRelReqDto.setRoleId(reqDto.getRoleId());//sourceId:31941_1
addRoleRelReqDto.setRoleCode(reqDto.getRoleCode());//sourceId:31942_1
addRoleRelReqDto.setFirstLetter(reqDto.getFirstLetter());//sourceId:31943_1
addRoleRelReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:31944_1
addRoleRelReqDto.setUserId(reqDto.getUserId());//sourceId:54484_1
    }
  
    /*D1-2新增角色人员[737]   */
    Assert.isNull(addRoleRelReqDto.getOriginalRoleMemberId(),"B1-新增角色人员（管理）-D1-2新增角色人员-身份人员ID不能为空",false);
Assert.isNull(addRoleRelReqDto.getRoleId(),"B1-新增角色人员（管理）-D1-2新增角色人员-角色ID不能为空",false);
Assert.isNull(addRoleRelReqDto.getRoleCode(),"B1-新增角色人员（管理）-D1-2新增角色人员-角色标识不能为空",false);
Assert.isNull(addRoleRelReqDto.getFirstLetter(),"B1-新增角色人员（管理）-D1-2新增角色人员-备注首位字母不能为空",false);
Assert.isNull(addRoleRelReqDto.getSubjectLifeCycle(),"B1-新增角色人员（管理）-D1-2新增角色人员-主体生命周期不能为空",false);
Assert.isNull(addRoleRelReqDto.getUserId(),"B1-新增角色人员（管理）-D1-2新增角色人员-账号ID不能为空",false);
      addRoleRelRespDto = fwBaseMemberClient.addRoleRel(addRoleRelReqDto).getData();
      
      addRoleRelRespDto_1 = addRoleRelRespDto;
    
BffAddRoleRelRespDto retData = new BffAddRoleRelRespDto();
  if(addRoleRelRespDto_1!=null){
      retData.setRoleMemberId(addRoleRelRespDto_1.getRoleMemberId());//sourceId:47310_1
    }
  

  
  
return retData;
  }

    /**
     * B1-2设员工无效（管理）[1028]
     */
    @Trace(operationName = "B1-2设员工无效（管理）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffInValidIsinvalidSetStaffMemberRespDto inValidIsinvalidSetStaffMember(BffInValidIsinvalidSetStaffMemberReqDto reqDto) {


        //步骤0: D1-2设员工无效 - inValidIsinvalidSetStaffMember
        InValidIsinvalidSetStaffMemberRespDto inValidIsinvalidSetStaffMemberRespDto = null;
        InValidIsinvalidSetStaffMemberReqDto inValidIsinvalidSetStaffMemberReqDto = new InValidIsinvalidSetStaffMemberReqDto();
        if (reqDto != null) {
            inValidIsinvalidSetStaffMemberReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:50170_1
            inValidIsinvalidSetStaffMemberReqDto.setInvalidType(reqDto.getInvalidType());//sourceId:50175_1
            inValidIsinvalidSetStaffMemberReqDto.setInvalidReason(reqDto.getInvalidReason());//sourceId:50177_1
        }

        /*D1-2设员工无效[1688]   */
        inValidIsinvalidSetStaffMemberRespDto = fwBaseMemberClient.inValidIsinvalidSetStaffMember(inValidIsinvalidSetStaffMemberReqDto).getData();


//步骤1: D-Redis清空用户Token - clearTokenFromRedis
        //ModelCode: clearTokenFromRedis
        ClearTokenFromRedisRespDto clearTokenFromRedisRes = null;
        ClearTokenFromRedisReqDto clearTokenFromRedisReq = new ClearTokenFromRedisReqDto();
        if (reqDto != null) {
            clearTokenFromRedisReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:51334_1
        }

        /*D-Redis清空用户Token[1698]  入参身份ID，清除用户token */
        clearTokenFromRedisRes = nbMember.clearTokenFromRedis(clearTokenFromRedisReq);


//步骤2: D-Redis清空用户信息 - clearUserInfoFromRedis
        //ModelCode: clearUserInfoFromRedis
        ClearUserInfoFromRedisRespDto clearUserInfoFromRedisRes = null;
        ClearUserInfoFromRedisReqDto clearUserInfoFromRedisReq = new ClearUserInfoFromRedisReqDto();
        if (reqDto != null) {
            clearUserInfoFromRedisReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:51335_1
        }

        /*D-Redis清空用户信息[1710]  清除用户缓存，不用重新登录，通过token重新获取 */
        clearUserInfoFromRedisRes = nbMember.clearUserInfoFromRedis(clearUserInfoFromRedisReq);


        BffInValidIsinvalidSetStaffMemberRespDto retData = new BffInValidIsinvalidSetStaffMemberRespDto();


        return retData;
    }

    /**
   * B1-2查询去重部门员工列表（管理）[1362]
   * gen by moon at 8/10/2022, 3:35:05 AM
   */
    @Trace(operationName = "B1-2查询去重部门员工列表（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryFilterDeptSatffListRespDto queryFilterDeptSatffList(BffQueryFilterDeptSatffListReqDto reqDto){
      
       
       QueryFilterDeptSatffListRespDto queryFilterDeptSatffListRespDto_1 = null;
//步骤0: D1-3查询去重部门员工列表 - queryFilterDeptSatffList
     QueryFilterDeptSatffListRespDto queryFilterDeptSatffListRespDto = null;
    QueryFilterDeptSatffListReqDto queryFilterDeptSatffListReqDto=new QueryFilterDeptSatffListReqDto();
  if(reqDto!=null){
      queryFilterDeptSatffListReqDto.setIdCardName(reqDto.getIdCardName());//sourceId:51531_1
queryFilterDeptSatffListReqDto.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//sourceId:51532_1
queryFilterDeptSatffListReqDto.setEntityId(reqDto.getEntityId());//sourceId:51533_1
    }
  
    /*D1-3查询去重部门员工列表[1716]   */
    Assert.isNull(queryFilterDeptSatffListReqDto.getInductionUnitTypeCode(),"B1-2查询去重部门员工列表（管理）-D1-3查询去重部门员工列表-就职单位类型实例不能为空",false);
Assert.isNull(queryFilterDeptSatffListReqDto.getEntityId(),"B1-2查询去重部门员工列表（管理）-D1-3查询去重部门员工列表-就职单位对象实例ID不能为空",false);
      queryFilterDeptSatffListRespDto = fwBaseMemberClient.queryFilterDeptSatffList(queryFilterDeptSatffListReqDto).getData();
      
      queryFilterDeptSatffListRespDto_1 = queryFilterDeptSatffListRespDto;
    
BffQueryFilterDeptSatffListRespDto retData = new BffQueryFilterDeptSatffListRespDto();
  if(queryFilterDeptSatffListRespDto_1!=null){
      retData.setStaffBeginMemberList(queryFilterDeptSatffListRespDto_1.getStaffBeginMemberList().stream().map(item -> BeanUtil.toBean(item, BffStaffBeginMemberDto.class)).collect(Collectors.toList()));//sourceId:51539_1
    }
  

  
  
return retData;
  }

    /**
   * B1-2查询组织员工列表（边界）[1184]
   * gen by moon at 8/10/2022, 3:33:25 AM
   */
    @Trace(operationName = "B1-2查询组织员工列表（边界）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryOrgStaffListRespDto queryOrgStaffList(BffQueryOrgStaffListReqDto reqDto){
      
       
       QueryOrgStaffListRespDto queryOrgStaffListRespDto_1 = null;
//步骤0: D1-3查询组织员工列表（边界） - queryOrgStaffList
     QueryOrgStaffListRespDto queryOrgStaffListRespDto = null;
    QueryOrgStaffListReqDto queryOrgStaffListReqDto=new QueryOrgStaffListReqDto();
  if(reqDto!=null){
      queryOrgStaffListReqDto.setOrganizationId(reqDto.getOrganizationId());//sourceId:45951_1
    }
  
    /*D1-3查询组织员工列表（边界）[1585]   */
    Assert.isNull(queryOrgStaffListReqDto.getOrganizationId(),"B1-2查询组织员工列表（边界）-D1-3查询组织员工列表（边界）-组织ID不能为空",false);
      queryOrgStaffListRespDto = fwBaseMemberClient.queryOrgStaffList(queryOrgStaffListReqDto).getData();
      
      queryOrgStaffListRespDto_1 = queryOrgStaffListRespDto;
    
BffQueryOrgStaffListRespDto retData = new BffQueryOrgStaffListRespDto();
  if(queryOrgStaffListRespDto_1!=null){
      retData.setBeginMemberList(queryOrgStaffListRespDto_1.getBeginMemberList().stream().map(item -> BeanUtil.toBean(item, BffBeginMemberDto.class)).collect(Collectors.toList()));//sourceId:63314_1
    }
  

  
  
return retData;
  }

    /**
   * B1-2查询员工去重角色人员列表（管理）[1072]
   * gen by moon at 8/10/2022, 3:32:16 AM
   */
    @Trace(operationName = "B1-2查询员工去重角色人员列表（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryStaffFilterRoleRelListRespDto queryStaffFilterRoleRelList(BffQueryStaffFilterRoleRelListReqDto reqDto){
      
       
       QueryStaffFilterRoleRelListBorderRespDto queryStaffFilterRoleRelListBorderRespDto_1 = null;
//步骤0: D1-2查询员工去重角色人员列表（边界） - queryStaffFilterRoleRelListBorder
     QueryStaffFilterRoleRelListBorderRespDto queryStaffFilterRoleRelListBorderRespDto = null;
    QueryStaffFilterRoleRelListBorderReqDto queryStaffFilterRoleRelListBorderReqDto=new QueryStaffFilterRoleRelListBorderReqDto();
  if(reqDto!=null){
      queryStaffFilterRoleRelListBorderReqDto.setIdCardName(reqDto.getIdCardName());//sourceId:50994_1
queryStaffFilterRoleRelListBorderReqDto.setRoleCode(reqDto.getRoleCode());//sourceId:50995_1
    }
  
    /*D1-2查询员工去重角色人员列表（边界）[1701]   */
    Assert.isNull(queryStaffFilterRoleRelListBorderReqDto.getRoleCode(),"B1-2查询员工去重角色人员列表（管理）-D1-2查询员工去重角色人员列表（边界）-角色标识不能为空",false);
      queryStaffFilterRoleRelListBorderRespDto = fwBaseMemberClient.queryStaffFilterRoleRelListBorder(queryStaffFilterRoleRelListBorderReqDto).getData();
      
      queryStaffFilterRoleRelListBorderRespDto_1 = queryStaffFilterRoleRelListBorderRespDto;
    
BffQueryStaffFilterRoleRelListRespDto retData = new BffQueryStaffFilterRoleRelListRespDto();
  if(queryStaffFilterRoleRelListBorderRespDto_1!=null){
      retData.setBeginMemberList(queryStaffFilterRoleRelListBorderRespDto_1.getBeginMemberList().stream().map(item -> BeanUtil.toBean(item, BffBeginMemberDto.class)).collect(Collectors.toList()));//sourceId:51020_1
    }
  

  
  
return retData;
  }

    /**
   * B1-2修改身份人员资料（管理）[1029]
   * gen by moon at 8/27/2022, 3:00:36 PM
   */
    @Trace(operationName = "B1-2修改身份人员资料（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateBeginMembInfoRespDto updateBeginMembInfo(BffUpdateBeginMembInfoReqDto reqDto){
      
       
       //步骤0: D1-2修改身份人员资料 - updateBeginMembInfo
     UpdateBeginMembInfoRespDto updateBeginMembInfoRespDto = null;
    UpdateBeginMembInfoReqDto updateBeginMembInfoReqDto=new UpdateBeginMembInfoReqDto();
  if(reqDto!=null){
      updateBeginMembInfoReqDto.setOriginalStafInfoId(reqDto.getOriginalStafInfoId());//sourceId:82093_1
updateBeginMembInfoReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:212798_1
updateBeginMembInfoReqDto.setIsPtJob(reqDto.getIsPtJob());//sourceId:37837_1
updateBeginMembInfoReqDto.setInductionTypeDictionaryId(reqDto.getInductionTypeDictionaryId());//sourceId:24544_1
updateBeginMembInfoReqDto.setInductionStateDictionaryId(reqDto.getInductionStateDictionaryId());//sourceId:24545_1
updateBeginMembInfoReqDto.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//sourceId:154702_1
updateBeginMembInfoReqDto.setPositionIdName(reqDto.getPositionIdName());//sourceId:24543_1
updateBeginMembInfoReqDto.setRoleMemberCode(reqDto.getRoleMemberCode());//sourceId:212762_1
    }
  
    /*D1-2修改身份人员资料[1154]   */
    Assert.isNull(updateBeginMembInfoReqDto.getIsPtJob(),"B1-2修改身份人员资料（管理）-D1-2修改身份人员资料-是否兼职不能为空",false);
      updateBeginMembInfoRespDto = fwBaseMemberClient.updateBeginMembInfo(updateBeginMembInfoReqDto).getData();
      
      
    
//步骤1: D-Redis清空用户信息 - clearUserInfoFromRedis
     //ModelCode: clearUserInfoFromRedis
        ClearUserInfoFromRedisRespDto clearUserInfoFromRedisRes = null;
    ClearUserInfoFromRedisReqDto clearUserInfoFromRedisReq=new ClearUserInfoFromRedisReqDto();
  if(reqDto!=null){
      clearUserInfoFromRedisReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:51329_1
    }
  
    /*D-Redis清空用户信息[1710]  清除用户缓存，不用重新登录，通过token重新获取 */
    Assert.isNull(clearUserInfoFromRedisReq.getOriginalRoleMemberId(),"B1-2修改身份人员资料（管理）-D-Redis清空用户信息-身份人员ID不能为空",false);
      clearUserInfoFromRedisRes = nbMember.clearUserInfoFromRedis(clearUserInfoFromRedisReq);
      
      
    
BffUpdateBeginMembInfoRespDto retData = new BffUpdateBeginMembInfoRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-3取消异动员工身份人员[1692]
   * gen by moon at 8/10/2022, 3:37:06 AM
   */
    @Trace(operationName = "B1-3取消异动员工身份人员")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffCancelTransactionStaffBeginMemberRespDto cancelTransactionStaffBeginMember(BffCancelTransactionStaffBeginMemberReqDto reqDto){
      
       
       //步骤0: D1-3取消异动员工身份人员 - cancelTransactionStaffBeginMember
     CancelTransactionStaffBeginMemberRespDto cancelTransactionStaffBeginMemberRespDto = null;
    CancelTransactionStaffBeginMemberReqDto cancelTransactionStaffBeginMemberReqDto=new CancelTransactionStaffBeginMemberReqDto();
  if(reqDto!=null){
      cancelTransactionStaffBeginMemberReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:50505_1
    }
  
    /*D1-3取消异动员工身份人员[1694]   */
    Assert.isNull(cancelTransactionStaffBeginMemberReqDto.getOriginalRoleMemberId(),"B1-3取消异动员工身份人员-D1-3取消异动员工身份人员-身份人员ID不能为空",false);
      cancelTransactionStaffBeginMemberRespDto = fwBaseMemberClient.cancelTransactionStaffBeginMember(cancelTransactionStaffBeginMemberReqDto).getData();
      
      
    
BffCancelTransactionStaffBeginMemberRespDto retData = new BffCancelTransactionStaffBeginMemberRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-3设异动员工身份人员[1691]
   * gen by moon at 8/10/2022, 3:37:02 AM
   */
    @Trace(operationName = "B1-3设异动员工身份人员")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffInTransactionStaffBeginMemberRespDto inTransactionStaffBeginMember(BffInTransactionStaffBeginMemberReqDto reqDto){
      
       
       //步骤0: D1-3设异动员工身份人员 - inTransactionStaffBeginMember
     InTransactionStaffBeginMemberRespDto inTransactionStaffBeginMemberRespDto = null;
    InTransactionStaffBeginMemberReqDto inTransactionStaffBeginMemberReqDto=new InTransactionStaffBeginMemberReqDto();
  if(reqDto!=null){
      inTransactionStaffBeginMemberReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:50459_1
    }
  
    /*D1-3设异动员工身份人员[1693]   */
    Assert.isNull(inTransactionStaffBeginMemberReqDto.getOriginalRoleMemberId(),"B1-3设异动员工身份人员-D1-3设异动员工身份人员-身份人员ID不能为空",false);
      inTransactionStaffBeginMemberRespDto = fwBaseMemberClient.inTransactionStaffBeginMember(inTransactionStaffBeginMemberReqDto).getData();
      
      
    
BffInTransactionStaffBeginMemberRespDto retData = new BffInTransactionStaffBeginMemberRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-3存档员工身份人员[1682]
   * gen by moon at 8/10/2022, 3:36:58 AM
   */
    @Trace(operationName = "B1-3存档员工身份人员")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffArchiveBeginMemberRespDto archiveBeginMember(BffArchiveBeginMemberReqDto reqDto){
      
       
       //步骤0: D1-3存档员工身份人员 - archiveBeginMember
     ArchiveBeginMemberRespDto archiveBeginMemberRespDto = null;
    ArchiveBeginMemberReqDto archiveBeginMemberReqDto=new ArchiveBeginMemberReqDto();
  if(reqDto!=null){
      archiveBeginMemberReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:49864_1
    }
  
    /*D1-3存档员工身份人员[1683]   */
    Assert.isNull(archiveBeginMemberReqDto.getOriginalRoleMemberId(),"B1-3存档员工身份人员-D1-3存档员工身份人员-身份人员ID不能为空",false);
      archiveBeginMemberRespDto = fwBaseMemberClient.archiveBeginMember(archiveBeginMemberReqDto).getData();
      
      
    
//步骤1: D-Redis清空用户Token - clearTokenFromRedis
     //ModelCode: clearTokenFromRedis
        ClearTokenFromRedisRespDto clearTokenFromRedisRes = null;
    ClearTokenFromRedisReqDto clearTokenFromRedisReq=new ClearTokenFromRedisReqDto();
  if(reqDto!=null){
      clearTokenFromRedisReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:51424_1
    }
  
    /*D-Redis清空用户Token[1698]  入参身份ID，清除用户token */
    
      clearTokenFromRedisRes = nbMember.clearTokenFromRedis(clearTokenFromRedisReq);
      
      
    
//步骤2: D-Redis清空用户信息 - clearUserInfoFromRedis
     //ModelCode: clearUserInfoFromRedis
        ClearUserInfoFromRedisRespDto clearUserInfoFromRedisRes = null;
    ClearUserInfoFromRedisReqDto clearUserInfoFromRedisReq=new ClearUserInfoFromRedisReqDto();
  if(reqDto!=null){
      clearUserInfoFromRedisReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:51325_1
    }
  
    /*D-Redis清空用户信息[1710]  清除用户缓存，不用重新登录，通过token重新获取 */
    
      clearUserInfoFromRedisRes = nbMember.clearUserInfoFromRedis(clearUserInfoFromRedisReq);
      
      
    
BffArchiveBeginMemberRespDto retData = new BffArchiveBeginMemberRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-2修改角色人员备注（管理）[1273]
   * gen by moon at 8/21/2022, 4:22:32 AM
   */
    @Trace(operationName = "B1-2修改角色人员备注（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateRoleRelNoteRespDto updateRoleRelNote(BffUpdateRoleRelNoteReqDto reqDto){
      
       
       //步骤0: D1-2修改身份人员资料 - updateBeginMembInfo
     UpdateBeginMembInfoRespDto updateBeginMembInfoRespDto = null;
    UpdateBeginMembInfoReqDto updateBeginMembInfoReqDto=new UpdateBeginMembInfoReqDto();
  if(reqDto!=null){
      updateBeginMembInfoReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:212795_1
updateBeginMembInfoReqDto.setRelaMemo(reqDto.getRelaMemo());//sourceId:31847_1
    }
  
    /*D1-2修改身份人员资料[1154]   */
    Assert.isNull(updateBeginMembInfoReqDto.getRelaMemo(),"B1-2修改角色人员备注（管理）-D1-2修改身份人员资料-备注不能为空",false);
      updateBeginMembInfoRespDto = fwBaseMemberClient.updateBeginMembInfo(updateBeginMembInfoReqDto).getData();
      
      
    
BffUpdateRoleRelNoteRespDto retData = new BffUpdateRoleRelNoteRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-2查询员工身份人员详情（管理）[1016]
   * gen by moon at 9/1/2022, 5:34:16 PM
   */
    @Trace(operationName = "B1-2查询员工身份人员详情（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryStaffBeginMemberDetailRespDto queryStaffBeginMemberDetail(BffQueryStaffBeginMemberDetailReqDto reqDto){
      
       
       QueryStaffBeginMemberDetailRespDto queryStaffBeginMemberDetailRespDto_1 =null;
QueryOrgClassBorderDetailComBorderRespDto queryOrgClassBorderDetailComBorderRespDto_1 =null;
QueryOrgClassBorderDetailComBorderRespDto queryOrgClassBorderDetailComBorderRespDto_3 =null;
QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto_1 =null;
//步骤0: D1-2查询员工身份人员详情 - queryStaffBeginMemberDetail
     QueryStaffBeginMemberDetailRespDto queryStaffBeginMemberDetailRespDto = null;
    QueryStaffBeginMemberDetailReqDto queryStaffBeginMemberDetailReqDto=new QueryStaffBeginMemberDetailReqDto();
  if(reqDto!=null){
      queryStaffBeginMemberDetailReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:24271_1
    }
  
    /*D1-2查询员工身份人员详情[392]   */
    Assert.isNull(queryStaffBeginMemberDetailReqDto.getOriginalRoleMemberId(),"B1-2查询员工身份人员详情（管理）-D1-2查询员工身份人员详情-身份人员ID不能为空",false);
      queryStaffBeginMemberDetailRespDto = fwBaseMemberClient.queryStaffBeginMemberDetail(queryStaffBeginMemberDetailReqDto).getData();
      
      
      queryStaffBeginMemberDetailRespDto_1 = queryStaffBeginMemberDetailRespDto;
    
//步骤1: D1-3查询组织架构字典边界详情(公共)(边界) - queryOrgClassBorderDetailComBorder
     QueryOrgClassBorderDetailComBorderRespDto queryOrgClassBorderDetailComBorderRespDto = null;
    if(queryStaffBeginMemberDetailRespDto !=null&&queryStaffBeginMemberDetailRespDto!= null&&  queryStaffBeginMemberDetailRespDto.getInductionTypeDictionaryId() !=null){
          QueryOrgClassBorderDetailComBorderReqDto queryOrgClassBorderDetailComBorderReqDto=new QueryOrgClassBorderDetailComBorderReqDto();
  queryOrgClassBorderDetailComBorderReqDto.setPurposeCode("INDUCTION_TYPE");//sourceId:43180_1
queryOrgClassBorderDetailComBorderReqDto.setOrganizationId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOrganizationId());//CURRENT_ORGID//sourceId:279375_1
if(queryStaffBeginMemberDetailRespDto!=null){
      queryOrgClassBorderDetailComBorderReqDto.setTypeDictionaryId(queryStaffBeginMemberDetailRespDto.getInductionTypeDictionaryId());//sourceId:43188_1
    }
  
    /*D1-3查组织架构类型字典边界（就职类型数据字典）[953]   */
    Assert.isNull(queryOrgClassBorderDetailComBorderReqDto.getTypeDictionaryId(),"B1-2查询员工身份人员详情（管理）-D1-3查组织架构类型字典边界（就职类型数据字典）-类型字典ID不能为空",false);
Assert.isNull(queryOrgClassBorderDetailComBorderReqDto.getPurposeCode(),"B1-2查询员工身份人员详情（管理）-D1-3查组织架构类型字典边界（就职类型数据字典）-类型用途编码不能为空",false);
Assert.isNull(queryOrgClassBorderDetailComBorderReqDto.getOrganizationId(),"B1-2查询员工身份人员详情（管理）-D1-3查组织架构类型字典边界（就职类型数据字典）-组织ID不能为空",false);
      queryOrgClassBorderDetailComBorderRespDto = fwBaseOrgDictionaryClient.queryOrgClassBorderDetailComBorder(queryOrgClassBorderDetailComBorderReqDto).getData();
      
      
      queryOrgClassBorderDetailComBorderRespDto_1 = queryOrgClassBorderDetailComBorderRespDto;
           }
    
//步骤2: D1-3查询组织架构字典边界详情(公共)(边界) - queryOrgClassBorderDetailComBorder
     QueryOrgClassBorderDetailComBorderRespDto queryOrgClassBorderDetailComBorderRespDto_2 = null;
    if(queryStaffBeginMemberDetailRespDto !=null&&queryStaffBeginMemberDetailRespDto!= null&&  queryStaffBeginMemberDetailRespDto.getInductionStateDictionaryId() !=null){
          QueryOrgClassBorderDetailComBorderReqDto queryOrgClassBorderDetailComBorderReqDto_1=new QueryOrgClassBorderDetailComBorderReqDto();
  queryOrgClassBorderDetailComBorderReqDto_1.setPurposeCode("INDUCTION_STATE");//sourceId:43198_1
queryOrgClassBorderDetailComBorderReqDto_1.setOrganizationId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOrganizationId());//CURRENT_ORGID//sourceId:279376_1
if(queryStaffBeginMemberDetailRespDto!=null){
      queryOrgClassBorderDetailComBorderReqDto_1.setTypeDictionaryId(queryStaffBeginMemberDetailRespDto.getInductionStateDictionaryId());//sourceId:43199_1
    }
  
    /*D1-3查组织架构类型字典边界（就职状态数据字典）[953]   */
    Assert.isNull(queryOrgClassBorderDetailComBorderReqDto_1.getTypeDictionaryId(),"B1-2查询员工身份人员详情（管理）-D1-3查组织架构类型字典边界（就职状态数据字典）-类型字典ID不能为空",false);
Assert.isNull(queryOrgClassBorderDetailComBorderReqDto_1.getPurposeCode(),"B1-2查询员工身份人员详情（管理）-D1-3查组织架构类型字典边界（就职状态数据字典）-类型用途编码不能为空",false);
Assert.isNull(queryOrgClassBorderDetailComBorderReqDto_1.getOrganizationId(),"B1-2查询员工身份人员详情（管理）-D1-3查组织架构类型字典边界（就职状态数据字典）-组织ID不能为空",false);
      queryOrgClassBorderDetailComBorderRespDto_2 = fwBaseOrgDictionaryClient.queryOrgClassBorderDetailComBorder(queryOrgClassBorderDetailComBorderReqDto_1).getData();
      
      
      queryOrgClassBorderDetailComBorderRespDto_3 = queryOrgClassBorderDetailComBorderRespDto_2;
           }
    
//步骤3: D1-3查询个人就职记录信息详情（公共） - queryInductionRecordInfoDetailCom
     QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
    if(queryStaffBeginMemberDetailRespDto !=null){
          QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto=new QueryInductionRecordInfoDetailComReqDto();
  if(queryStaffBeginMemberDetailRespDto!=null){
      queryInductionRecordInfoDetailComReqDto.setInductionRecordId(queryStaffBeginMemberDetailRespDto.getOperationInductionId());//sourceId:24520_1
    }
  
    /*D1-3查询个人就职记录信息详情（公共）[715]   */
    Assert.isNull(queryInductionRecordInfoDetailComReqDto.getInductionRecordId(),"B1-2查询员工身份人员详情（管理）-D1-3查询个人就职记录信息详情（公共）-就职记录ID不能为空",false);
      queryInductionRecordInfoDetailComRespDto = fwBaseInductionRecordClient.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData();
      
      
      queryInductionRecordInfoDetailComRespDto_1 = queryInductionRecordInfoDetailComRespDto;
           }
    
BffQueryStaffBeginMemberDetailRespDto retData = new BffQueryStaffBeginMemberDetailRespDto();
  if(queryStaffBeginMemberDetailRespDto_1!=null){
      retData.setOriginalRoleMemberId(queryStaffBeginMemberDetailRespDto_1.getOriginalRoleMemberId());//sourceId:30801_1
retData.setOriginalStafInfoId(queryStaffBeginMemberDetailRespDto_1.getOriginalStafInfoId());//sourceId:141625_1
retData.setRoleMemberCode(queryStaffBeginMemberDetailRespDto_1.getRoleMemberCode());//sourceId:24364_1
retData.setUserId(queryStaffBeginMemberDetailRespDto_1.getUserId());//sourceId:63130_1
retData.setPositionIdName(queryStaffBeginMemberDetailRespDto_1.getPositionIdName());//sourceId:24365_1
retData.setIsTransaction(queryStaffBeginMemberDetailRespDto_1.getIsTransaction());//sourceId:50519_1
retData.setIsInvalid(queryStaffBeginMemberDetailRespDto_1.getIsInvalid());//sourceId:24366_1
retData.setInvalidType(queryStaffBeginMemberDetailRespDto_1.getInvalidType());//sourceId:24367_1
retData.setInvalidReason(queryStaffBeginMemberDetailRespDto_1.getInvalidReason());//sourceId:24368_1
retData.setInvalidTime(queryStaffBeginMemberDetailRespDto_1.getInvalidTime());//sourceId:24369_1
retData.setOperationInductionId(queryStaffBeginMemberDetailRespDto_1.getOperationInductionId());//sourceId:24518_1
retData.setOperateTime(queryStaffBeginMemberDetailRespDto_1.getOperateTime());//sourceId:24519_1
retData.setSex(queryStaffBeginMemberDetailRespDto_1.getSex());//sourceId:24372_1
retData.setBirthday(queryStaffBeginMemberDetailRespDto_1.getBirthday());//sourceId:24373_1
retData.setCity(queryStaffBeginMemberDetailRespDto_1.getCity());//sourceId:24374_1
retData.setUserIntro(queryStaffBeginMemberDetailRespDto_1.getUserIntro());//sourceId:24375_1
retData.setUserName(queryStaffBeginMemberDetailRespDto_1.getUserName());//sourceId:24377_1
retData.setPhone(queryStaffBeginMemberDetailRespDto_1.getPhone());//sourceId:24378_1
retData.setEmail(queryStaffBeginMemberDetailRespDto_1.getEmail());//sourceId:24380_1
retData.setSource(queryStaffBeginMemberDetailRespDto_1.getSource());//sourceId:24382_1
retData.setSubjectLifeCycle(queryStaffBeginMemberDetailRespDto_1.getSubjectLifeCycle());//sourceId:141621_1
retData.setIsPtJob(queryStaffBeginMemberDetailRespDto_1.getIsPtJob());//sourceId:38313_1
retData.setInductionTypeDictionaryId(queryStaffBeginMemberDetailRespDto_1.getInductionTypeDictionaryId());//sourceId:155329_1
retData.setInductionStateDictionaryId(queryStaffBeginMemberDetailRespDto_1.getInductionStateDictionaryId());//sourceId:155330_1
retData.setIdCardName(queryStaffBeginMemberDetailRespDto_1.getIdCardName());//sourceId:155534_1
retData.setNickName(queryStaffBeginMemberDetailRespDto_1.getNickName());//sourceId:155535_1
      retData.setUserFace(CommonFunctionHelper.getSpecImage(queryStaffBeginMemberDetailRespDto_1.getUserFace(),"_80"));//sourceId:155536_1
retData.setDirectorInductionRecordId(queryStaffBeginMemberDetailRespDto_1.getDirectorInductionRecordId());//sourceId:155540_1
retData.setManagerIdcardName(queryStaffBeginMemberDetailRespDto_1.getManagerIdcardName());//sourceId:155537_1
retData.setManagerNickName(queryStaffBeginMemberDetailRespDto_1.getManagerNickName());//sourceId:155538_1
      retData.setManagerUserFace(CommonFunctionHelper.getSpecImage(queryStaffBeginMemberDetailRespDto_1.getManagerUserFace(),"_20"));//sourceId:155539_1
    }
if(queryOrgClassBorderDetailComBorderRespDto_1!=null){
      retData.setInductionTypeId(queryOrgClassBorderDetailComBorderRespDto_1.getTypeDictionaryId());//sourceId:155286_1
retData.setInductionTypeDictionaryName(queryOrgClassBorderDetailComBorderRespDto_1.getTypeDictionaryName());//sourceId:43265_1
    }
if(queryOrgClassBorderDetailComBorderRespDto_3!=null){
      retData.setInductionStateId(queryOrgClassBorderDetailComBorderRespDto_3.getTypeDictionaryId());//sourceId:155287_1
retData.setInductionStateDictionaryName(queryOrgClassBorderDetailComBorderRespDto_3.getTypeDictionaryName());//sourceId:43268_1
    }
if(queryInductionRecordInfoDetailComRespDto_1!=null){
      retData.setOperationIdCardName(queryInductionRecordInfoDetailComRespDto_1.getIdCardName());//sourceId:155541_1
retData.setOperationNickName(queryInductionRecordInfoDetailComRespDto_1.getNickName());//sourceId:155542_1
    }
  

  
  
return retData;
  }

    /**
   * B1-存档角色人员（管理）[1717]
   * gen by moon at 9/16/2022, 5:19:30 AM
   */
    @Trace(operationName = "B1-存档角色人员（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffArchiveRoleRelRespDto archiveRoleRel(BffArchiveRoleRelReqDto reqDto){
      
       
       //步骤0: D1-2存档角色人员 - archiveRoleRel
     ArchiveRoleRelRespDto archiveRoleRelRespDto = null;
    ArchiveRoleRelReqDto archiveRoleRelReqDto=new ArchiveRoleRelReqDto();
  if(reqDto!=null){
      archiveRoleRelReqDto.setRoleMemberId(reqDto.getRoleMemberId());//sourceId:51705_1
    }
  
    /*D1-2存档角色人员[1001]   */
    Assert.isNull(archiveRoleRelReqDto.getRoleMemberId(),"B1-存档角色人员（管理）-D1-2存档角色人员-角色人员ID不能为空",false);
      archiveRoleRelRespDto = fwBaseMemberClient.archiveRoleRel(archiveRoleRelReqDto).getData();
      
      
      
    
BffArchiveRoleRelRespDto retData = new BffArchiveRoleRelRespDto();
  
  

  
  
return retData;
  }

    /**
     * B1-2查询部门直属员工列表（边界）-备用
     */
    @Trace(operationName = "B1-2查询部门直属员工列表（边界）-备用")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryDeptDirectStaffListRespDto queryDeptDirectStaffList(BffQueryDeptDirectStaffListReqDto reqDto) {


        //步骤0: D1-2查询部门员工列表（边界） - queryDeptDirectStaffListBorder
        QueryDeptDirectStaffListBorderRespDto queryDeptDirectStaffListBorderRespDto = null;
        QueryDeptDirectStaffListBorderReqDto queryDeptDirectStaffListBorderReqDto = new QueryDeptDirectStaffListBorderReqDto();
        if (reqDto != null) {
            queryDeptDirectStaffListBorderReqDto.setEntityId(reqDto.getEntityId());//sourceId:46479_1
        }

        /*D1-2查询部门员工列表（边界）[1604]   */
        queryDeptDirectStaffListBorderRespDto = fwBaseMemberClient.queryDeptDirectStaffListBorder(queryDeptDirectStaffListBorderReqDto).getData();


        BffQueryDeptDirectStaffListRespDto retData = new BffQueryDeptDirectStaffListRespDto();
        retData.setOrgInductionRecordList(queryDeptDirectStaffListBorderRespDto.getOrgInductionRecordList().stream().map(item -> BeanUtil.toBean(item, BffOrgInductionRecordDto.class)).collect(Collectors.toList()));//sourceId:66760_1


        return retData;
    }

    /**
   * B1-2存档部门管理员（边界）[1566]
   * gen by moon at 8/10/2022, 3:36:06 AM
   */
    @Trace(operationName = "B1-2存档部门管理员（边界）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffArchiveDeptAdminRoleRelRespDto archiveDeptAdminRoleRel(BffArchiveDeptAdminRoleRelReqDto reqDto){
      
       
       //步骤0: D1-2存档部门管理员 - archiveDeptAdminRoleRel
     ArchiveDeptAdminRoleRelRespDto archiveDeptAdminRoleRelRespDto = null;
    ArchiveDeptAdminRoleRelReqDto archiveDeptAdminRoleRelReqDto=new ArchiveDeptAdminRoleRelReqDto();
  if(reqDto!=null){
      archiveDeptAdminRoleRelReqDto.setRoleMemberId(reqDto.getRoleMemberId());//sourceId:45239_1
    }
  
    /*D1-2存档部门管理员[1567]   */
    Assert.isNull(archiveDeptAdminRoleRelReqDto.getRoleMemberId(),"B1-2存档部门管理员（边界）-D1-2存档部门管理员-角色人员ID不能为空",false);
      archiveDeptAdminRoleRelRespDto = fwBaseMemberClient.archiveDeptAdminRoleRel(archiveDeptAdminRoleRelReqDto).getData();
      
      
    
BffArchiveDeptAdminRoleRelRespDto retData = new BffArchiveDeptAdminRoleRelRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-2新增部门管理员（边界）[1565]
   * gen by moon at 9/15/2022, 3:21:02 AM
   */
    @Trace(operationName = "B1-2新增部门管理员（边界）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddDeptAdminRoleRelRespDto addDeptAdminRoleRel(BffAddDeptAdminRoleRelReqDto reqDto){
      
       
       AddDeptAdminRoleRelRespDto addDeptAdminRoleRelRespDto_1 =null;
//步骤0: D1-2新增部门管理员 - addDeptAdminRoleRel
     AddDeptAdminRoleRelRespDto addDeptAdminRoleRelRespDto = null;
    AddDeptAdminRoleRelReqDto addDeptAdminRoleRelReqDto=new AddDeptAdminRoleRelReqDto();
  if(reqDto!=null){
      addDeptAdminRoleRelReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:45116_1
addDeptAdminRoleRelReqDto.setFirstLetter(reqDto.getFirstLetter());//sourceId:45120_1
addDeptAdminRoleRelReqDto.setUserId(reqDto.getUserId());//sourceId:54488_1
    }
  
    /*D1-2新增部门管理员[1564]   */
    Assert.isNull(addDeptAdminRoleRelReqDto.getOriginalRoleMemberId(),"B1-2新增部门管理员（边界）-D1-2新增部门管理员-身份人员ID不能为空",false);
Assert.isNull(addDeptAdminRoleRelReqDto.getFirstLetter(),"B1-2新增部门管理员（边界）-D1-2新增部门管理员-备注首位字母不能为空",false);
Assert.isNull(addDeptAdminRoleRelReqDto.getUserId(),"B1-2新增部门管理员（边界）-D1-2新增部门管理员-账号ID不能为空",false);
      addDeptAdminRoleRelRespDto = fwBaseMemberClient.addDeptAdminRoleRel(addDeptAdminRoleRelReqDto).getData();
      
      addDeptAdminRoleRelRespDto_1 = addDeptAdminRoleRelRespDto;
    
BffAddDeptAdminRoleRelRespDto retData = new BffAddDeptAdminRoleRelRespDto();
  if(addDeptAdminRoleRelRespDto_1!=null){
      retData.setRoleMemberId(addDeptAdminRoleRelRespDto_1.getRoleMemberId());//sourceId:45132_1
retData.setManagedDepId(addDeptAdminRoleRelRespDto_1.getManagedDepId());//sourceId:45133_1
    }
  

  
  
return retData;
  }

    /**
     * B1-2查询员工身份人员详情（边界）
     */
    @Trace(operationName = "B1-2查询员工身份人员详情（边界）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryBeginMemberDetailRespDto queryBeginMemberDetail(BffQueryBeginMemberDetailReqDto reqDto) {


        QueryStaffBeginMemberDetailRespDto queryStaffBeginMemberDetailRespDto_1 = null;
//步骤0: D1-2查询员工身份人员详情 - queryStaffBeginMemberDetail
        QueryStaffBeginMemberDetailRespDto queryStaffBeginMemberDetailRespDto = null;
        QueryStaffBeginMemberDetailReqDto queryStaffBeginMemberDetailReqDto = new QueryStaffBeginMemberDetailReqDto();
        if (reqDto != null) {
            queryStaffBeginMemberDetailReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:44736_1
        }

        /*D1-2查询员工身份人员详情[392]   */
        queryStaffBeginMemberDetailRespDto = fwBaseMemberClient.queryStaffBeginMemberDetail(queryStaffBeginMemberDetailReqDto).getData();

        queryStaffBeginMemberDetailRespDto_1 = queryStaffBeginMemberDetailRespDto;

        BffQueryBeginMemberDetailRespDto retData = new BffQueryBeginMemberDetailRespDto();
        if (queryStaffBeginMemberDetailRespDto_1 != null) {
            retData.setOriginalRoleMemberId(queryStaffBeginMemberDetailRespDto_1.getOriginalRoleMemberId());//sourceId:44787_1
            retData.setIdCardName(queryStaffBeginMemberDetailRespDto_1.getIdCardName());//sourceId:44788_1
            retData.setNickName(queryStaffBeginMemberDetailRespDto_1.getNickName());//sourceId:44789_1
            retData.setUserFace(queryStaffBeginMemberDetailRespDto_1.getUserFace());//sourceId:44790_1
            retData.setRoleMemberCode(queryStaffBeginMemberDetailRespDto_1.getRoleMemberCode());//sourceId:44791_1
            retData.setPositionIdName(queryStaffBeginMemberDetailRespDto_1.getPositionIdName());//sourceId:44792_1
        }


        return retData;
    }

    /**
   * B1-2删除部门管理员（管理）[1135]
   * gen by moon at 8/10/2022, 3:33:07 AM
   */
    @Trace(operationName = "B1-2删除部门管理员（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteDeptAdminRoleRelRespDto deleteDeptAdminRoleRel(BffDeleteDeptAdminRoleRelReqDto reqDto){
      
       
       //步骤0: D1-2删除部门管理员(管理) - deleteDeptAdminRoleRel
     DeleteDeptAdminRoleRelRespDto deleteDeptAdminRoleRelRespDto = null;
    DeleteDeptAdminRoleRelReqDto deleteDeptAdminRoleRelReqDto=new DeleteDeptAdminRoleRelReqDto();
  if(reqDto!=null){
      deleteDeptAdminRoleRelReqDto.setRoleMemberId(reqDto.getRoleMemberId());//sourceId:28130_1
    }
  
    /*D1-2删除部门管理员(管理)[1136]   */
    Assert.isNull(deleteDeptAdminRoleRelReqDto.getRoleMemberId(),"B1-2删除部门管理员（管理）-D1-2删除部门管理员(管理)-角色人员ID不能为空",false);
      deleteDeptAdminRoleRelRespDto = fwBaseMemberClient.deleteDeptAdminRoleRel(deleteDeptAdminRoleRelReqDto).getData();
      
      
    
BffDeleteDeptAdminRoleRelRespDto retData = new BffDeleteDeptAdminRoleRelRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-2删除角色人员（管理）[1118]
   * gen by moon at 10/15/2022, 5:53:19 PM
   */
    @Trace(operationName = "B1-2删除角色人员（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteRoleRelRespDto deleteRoleRel(BffDeleteRoleRelReqDto reqDto){
      
       
       //步骤0: D1-2删除角色人员 - deleteRoleRel
     DeleteRoleRelRespDto deleteRoleRelRespDto = null;
    DeleteRoleRelReqDto deleteRoleRelReqDto=new DeleteRoleRelReqDto();
  if(reqDto!=null){
      deleteRoleRelReqDto.setRoleMemberId(reqDto.getRoleMemberId());//SimpleFieldAssign//sourceId:28119_1
    }
  
    /*D1-2删除角色人员[1004]   */
    Assert.isNull(deleteRoleRelReqDto.getRoleMemberId(),"B1-2删除角色人员（管理）-D1-2删除角色人员-角色人员ID不能为空",false);
      deleteRoleRelRespDto = fwBaseMemberClient.deleteRoleRel(deleteRoleRelReqDto).getData();
      
      
      
    
BffDeleteRoleRelRespDto retData = new BffDeleteRoleRelRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-2查询部门管理员列表（管理）[1088]
   * gen by moon at 8/10/2022, 3:32:25 AM
   */
    @Trace(operationName = "B1-2查询部门管理员列表（管理）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryDeptAdminRoleRelListRespDto queryDeptAdminRoleRelList(BffQueryDeptAdminRoleRelListReqDto reqDto){
      
       
       QueryDeptAdminRoleRelListRespDto queryDeptAdminRoleRelListRespDto_1 = null;
//步骤0: D1-2查询部门管理员列表 - queryDeptAdminRoleRelList
     QueryDeptAdminRoleRelListRespDto queryDeptAdminRoleRelListRespDto = null;
    QueryDeptAdminRoleRelListReqDto queryDeptAdminRoleRelListReqDto=new QueryDeptAdminRoleRelListReqDto();
  if(reqDto!=null){
      queryDeptAdminRoleRelListReqDto.setDeptId(reqDto.getDeptId());//sourceId:46856_1
    }
  
    /*D1-2查询部门管理员列表[1151]   */
    Assert.isNull(queryDeptAdminRoleRelListReqDto.getDeptId(),"B1-2查询部门管理员列表（管理）-D1-2查询部门管理员列表-部门ID不能为空",false);
      queryDeptAdminRoleRelListRespDto = fwBaseMemberClient.queryDeptAdminRoleRelList(queryDeptAdminRoleRelListReqDto).getData();
      
      queryDeptAdminRoleRelListRespDto_1 = queryDeptAdminRoleRelListRespDto;
    
BffQueryDeptAdminRoleRelListRespDto retData = new BffQueryDeptAdminRoleRelListRespDto();
  if(queryDeptAdminRoleRelListRespDto_1!=null){
      retData.setRoleRelList(queryDeptAdminRoleRelListRespDto_1.getRoleRelList().stream().map(item -> BeanUtil.toBean(item, BffRoleRelDto.class)).collect(Collectors.toList()));//sourceId:63323_1
    }
  

  retData.setPageNum(queryDeptAdminRoleRelListRespDto.getPageNum());
        retData.setPageSize(queryDeptAdminRoleRelListRespDto.getPageSize());
        retData.setTotal(queryDeptAdminRoleRelListRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryDeptAdminRoleRelListRespDto.getTotalNum()) / Double.valueOf(queryDeptAdminRoleRelListRespDto.getPageSize()))) <= retData.getPageNum());
        
  
return retData;
  }
/**
   * B1-2设置员工无效(管理)[1028]
   * gen by moon at 8/10/2022, 3:31:44 AM
   */
    @Trace(operationName = "B1-2设置员工无效(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffSetInvalidStaffMemberRespDto setInvalidStaffMember(BffSetInvalidStaffMemberReqDto reqDto){
      
       
       //步骤0: D1-2设员工无效 - inValidIsinvalidSetStaffMember
     InValidIsinvalidSetStaffMemberRespDto inValidIsinvalidSetStaffMemberRespDto = null;
    InValidIsinvalidSetStaffMemberReqDto inValidIsinvalidSetStaffMemberReqDto=new InValidIsinvalidSetStaffMemberReqDto();
  if(reqDto!=null){
      inValidIsinvalidSetStaffMemberReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:50170_1
inValidIsinvalidSetStaffMemberReqDto.setInvalidType(reqDto.getInvalidType());//sourceId:50175_1
inValidIsinvalidSetStaffMemberReqDto.setInvalidReason(reqDto.getInvalidReason());//sourceId:50177_1
    }
  
    /*D1-2设员工无效[1688]   */
    Assert.isNull(inValidIsinvalidSetStaffMemberReqDto.getOriginalRoleMemberId(),"B1-2设置员工无效(管理)-D1-2设员工无效-身份人员ID不能为空",false);
Assert.isNull(inValidIsinvalidSetStaffMemberReqDto.getInvalidType(),"B1-2设置员工无效(管理)-D1-2设员工无效-失效类型不能为空",false);
      inValidIsinvalidSetStaffMemberRespDto = fwBaseMemberClient.inValidIsinvalidSetStaffMember(inValidIsinvalidSetStaffMemberReqDto).getData();
      
      
    
//步骤1: D-Redis清空用户Token - clearTokenFromRedis
     //ModelCode: clearTokenFromRedis
        ClearTokenFromRedisRespDto clearTokenFromRedisRes = null;
    ClearTokenFromRedisReqDto clearTokenFromRedisReq=new ClearTokenFromRedisReqDto();
  if(reqDto!=null){
      clearTokenFromRedisReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:51334_1
    }
  
    /*D-Redis清空用户Token[1698]  入参身份ID，清除用户token */
    
      clearTokenFromRedisRes = nbMember.clearTokenFromRedis(clearTokenFromRedisReq);
      
      
    
//步骤2: D-Redis清空用户信息 - clearUserInfoFromRedis
     //ModelCode: clearUserInfoFromRedis
        ClearUserInfoFromRedisRespDto clearUserInfoFromRedisRes = null;
    ClearUserInfoFromRedisReqDto clearUserInfoFromRedisReq=new ClearUserInfoFromRedisReqDto();
  if(reqDto!=null){
      clearUserInfoFromRedisReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:51335_1
    }
  
    /*D-Redis清空用户信息[1710]  清除用户缓存，不用重新登录，通过token重新获取 */
    
      clearUserInfoFromRedisRes = nbMember.clearUserInfoFromRedis(clearUserInfoFromRedisReq);
      
      
    
BffSetInvalidStaffMemberRespDto retData = new BffSetInvalidStaffMemberRespDto();
  
  

  
  
return retData;
  }
/**
   * B1-2批量查业务角色人员(管理)(边界)[2974]
   * gen by moon at 10/8/2022, 3:09:32 AM
   */
    @Trace(operationName = "B1-2批量查业务角色人员(管理)(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffBatchQueryBizRoleRelBorderRespDto batchQueryBizRoleRelBorder(BffBatchQueryBizRoleRelBorderReqDto reqDto){
      
       
       BatchQueryRoleRelBorderRespDto batchQueryRoleRelBorderRespDto_1 =null;
//步骤0: D1-2批量查角色人员(边界) - batchQueryRoleRelBorder
     BatchQueryRoleRelBorderRespDto batchQueryRoleRelBorderRespDto = null;
    BatchQueryRoleRelBorderReqDto batchQueryRoleRelBorderReqDto=new BatchQueryRoleRelBorderReqDto();
  if(reqDto!=null){
      //list-field-assign
    batchQueryRoleRelBorderReqDto.setRoleRelList(reqDto.getRoleRelList());//sourceId:95755_1
    }
  
    /*D1-2批量查角色人员(边界)[2973]   */
    
      batchQueryRoleRelBorderRespDto = fwBaseMemberClient.batchQueryRoleRelBorder(batchQueryRoleRelBorderReqDto).getData();
      
      
      batchQueryRoleRelBorderRespDto_1 = batchQueryRoleRelBorderRespDto;
    
BffBatchQueryBizRoleRelBorderRespDto retData = new BffBatchQueryBizRoleRelBorderRespDto();
  if(batchQueryRoleRelBorderRespDto_1!=null){
      retData.setBizRoleRelList(batchQueryRoleRelBorderRespDto_1.getRoleRelList().stream().map(item -> BeanUtil.toBean(item, BffBizRoleRelDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:95775_1
    }
  

  
  
return retData;
  }
/**
   * B1-2查询字母身份人员列表(管理)[4561]
   * gen by moon at 2/21/2023, 8:50:09 PM
   */
    @Trace(operationName = "B1-2查询字母身份人员列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryLetterBeginMemberListRespDto queryLetterBeginMemberList(BffQueryLetterBeginMemberListReqDto reqDto){
      
       
       QueryLetterBeginMemberListRespDto queryLetterBeginMemberListRespDto_1 =null;
       //步骤0: D1-2查询字母身份人员列表 - queryLetterBeginMemberList
     QueryLetterBeginMemberListRespDto queryLetterBeginMemberListRespDto = null;
    QueryLetterBeginMemberListReqDto queryLetterBeginMemberListReqDto=new QueryLetterBeginMemberListReqDto();
  queryLetterBeginMemberListReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:329188_1
if(reqDto!=null){
      queryLetterBeginMemberListReqDto.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:329190_1
queryLetterBeginMemberListReqDto.setFirstLetter(reqDto.getFirstLetter());//SimpleFieldAssign//sourceId:329189_1
queryLetterBeginMemberListReqDto.setIsInvalid(reqDto.getIsInvalid());//SimpleFieldAssign//sourceId:329187_1
queryLetterBeginMemberListReqDto.setSource(reqDto.getSource());//SimpleFieldAssign//sourceId:329186_1
    }
  
    /*D1-2查询字母身份人员列表[4559]   */
    Assert.isNull(queryLetterBeginMemberListReqDto.getSpaceId(),"B1-2查询字母身份人员列表(管理)-D1-2查询字母身份人员列表-创建于空间ID不能为空",false);
      queryLetterBeginMemberListRespDto = fwBaseMemberClient.queryLetterBeginMemberList(queryLetterBeginMemberListReqDto).getData();
      
      
      queryLetterBeginMemberListRespDto_1 = queryLetterBeginMemberListRespDto;
    
BffQueryLetterBeginMemberListRespDto retData = new BffQueryLetterBeginMemberListRespDto();
  if(queryLetterBeginMemberListRespDto_1!=null){
      retData.setBeginMemberList(queryLetterBeginMemberListRespDto_1.getBeginMemberList().stream().map(item -> BeanUtil.toBean(item, BffBeginMemberDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:683635_1
    }
  

  retData.setPageNum(queryLetterBeginMemberListRespDto.getPageNum());
        retData.setPageSize(queryLetterBeginMemberListRespDto.getPageSize());
        retData.setTotal(queryLetterBeginMemberListRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryLetterBeginMemberListRespDto.getTotalNum()) / Double.valueOf(queryLetterBeginMemberListRespDto.getPageSize()))) <= retData.getPageNum());
        
  
return retData;
  }
    //
}
